#!/bin/sh
sudo apt-get install vim
#remove old configurations
rm ~/.vimrc
rm -rf ~/.vim
#install vundle
cp ./.vimrc ~/
mkdir ~/.vim
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
#add color theme
cp -rf ./colors ~/.vim/
#install youcompleteme
git clone --recursive http://github.com/Valloric/YouCompleteMe ~/.vim/bundle/YouCompleteMe
sudo apt-get install build-essential cmake python-dev python3-dev
cp .ycm_extra_conf.py ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
#remove downloaded files
